package com.group3.group3.post.repository;
/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Tom
 * @Date: 2022/05/19/22:37
 * @Description:
 */

/**
 *@ClassName PostDao
 *@Description
 *@Author 王琛
 *@Date 2022/5/19 22:37
 @Version 1.0
 */

import com.group3.group3.mybatis.entity.PtDutyEntity;
import com.group3.group3.mybatis.entity.PtMenuEntity;
import com.group3.group3.mybatis.flexigrid.PagingBean;
import com.group3.group3.post.entity.SearchPostEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PostDao {
    PtDutyEntity getPostInfoById(@Param("postId") String postId);
    void addPostInfoById(@Param("entity")PtDutyEntity entity);

    List<PtDutyEntity> queryPostListByPage(@Param("search")SearchPostEntity search, @Param("paging")PagingBean paging);

    Integer queryPostListTotal(@Param("search")SearchPostEntity search);

    void deletePostById(String postId);

    void modifyPostInfoById(PtDutyEntity entity);
}
